def sh(num):
    return '{:04X}'.format(num)

number = int(input("Введите число: "))
result = sh(number)
print(result)

